ImageGear .NET v25.0 - Updated
WriteDirectText(ImGearOCRPage[],Stream) Method




ImageGear.OCR Assembly > ImageGear.OCR Namespace > ImGearOCR Class > WriteDirectText Method : WriteDirectText(ImGearOCRPage[],Stream) Method
Array of ImGearOCRPage objects with valid recognition data to be written.
System.IO.Stream object to which the recognition data will be written.
Writes the recognition data of several pages to the output stream in the one of text formats.
Syntax
'Declaration
 
Public Overloads MustOverride Sub WriteDirectText( _
   ByVal pages() As ImGearOCRPage, _
   ByVal stream As Stream _
) 
'Usage
 
Dim instance As ImGearOCR
Dim pages() As ImGearOCRPage
Dim stream As Stream
 
instance.WriteDirectText(pages, stream)
public abstract void WriteDirectText( 
   ImGearOCRPage[] pages,
   Stream stream
)
public: abstract void WriteDirectText( 
   ImGearOCRPage*[]* pages,
   Stream* stream
) 
public:
abstract void WriteDirectText( 
   array<ImGearOCRPage^>^ pages,
   Stream^ stream
) 

Parameters

pages
Array of ImGearOCRPage objects with valid recognition data to be written.
stream
System.IO.Stream object to which the recognition data will be written.
Exceptions
ExceptionDescription
Argument pages, one or more values of pages array or argument filePath is null.
Given page or parent of given page is disposed.
Given stream does not support writting.
Remarks

Use ImGearOCRSettings.DirectTextFormatto get or set the output format.

The new recognition data will be written starting at the current position of the stream. When this method returns, the current position will be at the end of the stream, so you will need to set the position accordingly if you plan to read the stream later.

The following rules apply if the stream parameter contains existing data:

See Also

Reference

ImGearOCR Class
ImGearOCR Members
Overload List
WriteDirectText(ImGearOCRPage,Stream) Method
WriteDirectText(ImGearOCRPage,String) Method
WriteDirectText(ImGearOCRPage[],String) Method